/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.storage.entity;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;

/**
 * 转发活动Entity
 */
@Table(name="biz_trans_activity", alias="a", columns={
		@Column(name="id", attrName="id", label="唯一标识", isPK=true),
		@Column(name="member_id", attrName="memberId", label="会员Id"),
		@Column(name="type", attrName="type", label="类型"),
		@Column(name="brand_id", attrName="brandId", label="品牌Id"),
		@Column(name="activity_id", attrName="activityId", label="活动Id"),
		@Column(name="is_buy", attrName="isBuy", label="是否购买"),
		@Column(name="add_price", attrName="addPrice", label="加价"),
		@Column(name="create_date", attrName="createDate", label="创建时间", isUpdate=false, isQuery=false),
		@Column(name="update_date", attrName="updateDate", label="更新时间", isQuery=false),
	}, orderBy="a.update_date DESC"
)
public class TransActivity extends DataEntity<TransActivity> {
	
	private static final long serialVersionUID = 1L;
	private String memberId;		// 会员Id
	private String type;		// 类型【活动/选择性】
	private String brandId;		// 品牌Id
	private String activityId;		// 活动Id
	private Boolean isBuy;		// 是否购买
	private Double addPrice;		// 加价
	
	public TransActivity() {
		this(null);
	}

	public TransActivity(String id){
		super(id);
	}

	public String getMemberId() {
		return memberId;
	}

	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getBrandId() {
		return brandId;
	}

	public void setBrandId(String brandId) {
		this.brandId = brandId;
	}

	public String getActivityId() {
		return activityId;
	}

	public void setActivityId(String activityId) {
		this.activityId = activityId;
	}

	public Boolean getIsBuy() {
		return isBuy;
	}

	public void setIsBuy(Boolean isBuy) {
		this.isBuy = isBuy;
	}

	public Double getAddPrice() {
		return addPrice;
	}

	public void setAddPrice(Double addPrice) {
		this.addPrice = addPrice;
	}
}